package com.lizhenhua.api.follback;

import com.lizhenhua.api.feignClient.OrderSubmitFeignClient;
import com.lizhenhua.fmmall.beans.Users;
import org.springframework.stereotype.Component;

@Component
public class OrderSubmitFollBack implements OrderSubmitFeignClient {
    @Override
    public Users checkUser(String username) {
        // 如果调用 user-check服务失败 则返回 null
        System.out.println("-------------执行了降级服务");
        return null;
    }
}
